
#include "stm32f10x.h"

void System_Init(void);
void System_TaskSchedule(void);

void System_JumpToAPP(void);
void System_ReceiveIAPData(void);
void System_ReceiveIAPCode(void);
void System_ReceiveIAPHead(void);
void System_IAPBegin(void);
void System_BootVersion(void);
void System_WaitToJumpApp(void);
void System_SendAgain(void);
void System_TransData(u8 buf[]);
void System_SendEeponse(u8 buf[]);
void System_UpdatePrivateID(void); 

void System_TransUsartToCan(void);
void System_TransCanToUsart(void);

void System_RequestErData(u8 code);
u8 System_CheckFlash(u16 *buf1,u16 *buf2,u16 length);

extern u16 timeoutCounter;
extern u16 timeoutCounterReponse;
